change mail_applications resources
restructuring app
fix mail_application destroy