refactor the edit/new form into a partial