AJAX functions for dismissing alerts