refactor email subject, template