switch alert for showAjaxMessage