start of edit templates