fix some code, now only edit form not work
add method