add templates for edit and view