show alert when AJAX fails