update the tab select