fixed if for sendMail button