better responses from the ajax requests