     
     override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
         let tweetObject = tweets[indexPath.row]
-        print("selected row")
-        print(tweetObject)
         if let tweetUrl = URL(string: "https://twitter.com/user/status/\(tweetObject.id)") {
             UIApplication.shared.open(tweetUrl, options: [:], completionHandler: nil)
         }

                self.tableView!.reloadData()
            } else {
                // show error message
            }
            
            self.refreshControl?.endRefreshing()
        }
    }
    
    override func numberOfSections(in tableView: UITableView) -> Int {

        self.refreshControl = UIRefreshControl()
        self.refreshControl?.addTarget(self, action: #selector(getData), for: .valueChanged)
        
        getData()
    }
    
    func getData() {
        
        self.tableView.tableFooterView = nil
        
        if (self.tweets.count == 0) {
            self.refreshControl?.beginRefreshing()
            self.tableView.setContentOffset(CGPoint(x: 0, y: -self.refreshControl!.frame.size.height), animated: true)
            self.view.layoutIfNeeded()
        }
        
        TwitterAPI.getTweets { (results) in
            if let results = results {
