fixing set email action and template