creates page partial for new and edit forms