add ajax and test