Switch to the first tab when a tab is closed