fixing bug with edit form