working on the ajax calls