changes to adding emails templates.