ADD: add the method ajax and extend