add ajax and debug
update error