chenges in create and edit templates