base editor template and view