modify some bugs
finish fix bugs and improve experience with ajax