Update switchTabs