new and edit form and templates