Change the ajax function