updated home controller with sending email