Modifications on the ajax calls to gain compatibility