make  private function
fix onAjaxTimeout handling