template edit by data changes