partially templated new and edit for all the controllers