Close tab and switch to other