beginning portion of template editor edits