add mailer and views improvements