custom controller and mailer added