template and editing