Refactored common behavior of control center panes in order to set main window reference and also disable unselected tabs when a running action of any control center pane is started after load the instrument built