Open the previous tab when closing a tab