edit form using method