only send AJAX events if we are looking for them