added mailer, changed layouts