changed email templates and routes