added mailer stuff to application.rb