         if let webView = webView, webView.isLoading {
             if let refreshControl = neemanRefreshControl, !refreshControl.isRefreshing {
                 activityIndicator?.startAnimating()
+                activityIndicator?.superview?.isHidden = false
                 WebViewController.networkActivityCount += 1
                 UIApplication.shared.isNetworkActivityIndicatorVisible = true
             }
         } else {
             activityIndicator?.stopAnimating()
+            activityIndicator?.superview?.isHidden = true
             WebViewController.networkActivityCount -= 1
         }
     }

            multiplier: 1,
            constant: 0)
        view.addConstraint(xCenterConstraint)
        
        let yConstraint = NSLayoutConstraint(item: activityIndicator,
            attribute: .bottom,
            relatedBy: .equal,
            toItem: bottomLayoutGuide,
            attribute: .top,
            multiplier: 1,
            constant: -20)
        view.addConstraint(yConstraint)
    }
    
    /**

            return
        }
        
        activityIndicator = UIActivityIndicatorView(frame: CGRect(x: 8.5, y: 8.5, width: 24, height: 24))
        guard let activityIndicator = activityIndicator else {
            return
        }
        
        activityIndicator.hidesWhenStopped = true
        activityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.gray
        activityIndicator.isUserInteractionEnabled = false
        activityIndicator.translatesAutoresizingMaskIntoConstraints = true
        activityIndicator.autoresizingMask = [.flexibleTopMargin, .flexibleRightMargin, .flexibleBottomMargin, .flexibleLeftMargin]

        let holder = createActivityIndicatorHolder()
        holder.addSubview(activityIndicator)
        view.addSubview(holder)
        
        activityIndicator.startAnimating()
        
        holder.translatesAutoresizingMaskIntoConstraints = false
        let xCenterConstraint = NSLayoutConstraint(item: holder,
            attribute: .centerX,
            relatedBy: .equal,
            toItem: view,
