Auto switch the tab when tool bar icon is clicked.