cleaning up mails controller