check the AJAX status