             Toast(text: "Unable to retrieve data. Please try again later.",
                   delay: Delay.short,
                   duration: Delay.long).show()
-            NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
+            ArkActivityView.stopAnimating()
+            selfReference.refreshControl.endRefreshing()
         }
         
         func onResponse(object: Any)  -> Void {

            
            selfReference.blocks = blocks
            
            NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
            selfReference.tableView.reloadData()
        }
    }
    
    @objc private func updateTableView() {
        loadBlocks()
        
        refreshControl.endRefreshing()
    }
}


            tableView.addSubview(refreshControl)
        }
        
        loadBlocks(true)
    }
    
    private func loadBlocks(_ animated: Bool) -> Void {
        
        guard Reachability.isConnectedToNetwork() == true else {
            Toast(text: "Please connect to internet.",
