update new and edit form