after sending email, return to previous tab and finish.