added new template design and wrote test for mailer