save changes made directly to template