add put method to edit form