remove id and change templates to template in email directory