fix some bugs.
add ajax in form