Submitting changes to template