refactor forms to be create and edit.