adding debugging of the ajax call to track the response