added ajax support
finished
test