create partial for new and edit view pages