Select Viewports upon button activation

Maybe this can help you?