fixed mailer bugs and mailer styling