         }else{
             print("ERROR OCCURED: \(error)")
         }
+        if refreshControl.refreshing{
+            refreshControl.endRefreshing()
+        }
     }
     
     //Segue into Detail View

    let tweetCellId = "com.vnu.tweetcell"
    let tweetStatus = "home_timeline"
    let detailSegueId = "com.vnu.tweetDetail"
    
    private var tweets = [Tweet]()
    

        tweetsTableView.rowHeight = UITableViewAutomaticDimension
        setTweetyNavBar()
        fetchTweets()

        refreshControl.addTarget(self, action: "refreshControlAction:", forControlEvents: UIControlEvents.ValueChanged)
        tweetsTableView.insertSubview(refreshControl, atIndex: 0)
    }
    
    func setTweetyNavBar(){
