Implement mailer functionality
changes in layout