renamed updateTemplate to updateView