create partial for edit and new pages