Return to previous tab after editing