Editing template code