improving the ajax