Stay on the same tab after generating emails