refactoring
add email template