Exiting tab now defaults to the first tab