edit templates for duplicate, edit