 		}
 		
 		//timeout for refresh taking too long
-		delayInSeconds = 10.0;
-		popTime = dispatch_time(DISPATCH_TIME_NOW, Int64(delayInSeconds * Double(NSEC_PER_SEC)));
-		dispatch_after(popTime, dispatch_get_main_queue()) { () -> Void in
+		popTime = dispatch_time(DISPATCH_TIME_NOW, Int64(10 * Double(NSEC_PER_SEC)))
+		dispatch_after(popTime, dispatch_get_main_queue()) {
 			if !finishedRefreshing {
 				self.refreshControl?.endRefreshing()
 				self.view.userInteractionEnabled = true

		//if after delay seconds we finished fetching, 
		//then we reload the tableview, else we wait for the
		//api to return to reload by setting minumum time passed
		var delayInSeconds = 2.0;
		var popTime = dispatch_time(DISPATCH_TIME_NOW, Int64(delayInSeconds * Double(NSEC_PER_SEC)));
		dispatch_after(popTime, dispatch_get_main_queue()) { () -> Void in
			if finishedRefreshing {
				self.tableView.reloadData()
				self.refreshControl?.endRefreshing()

		view.userInteractionEnabled = false
		
		refreshFeed()
		addHamburgerMenu()
		
		tableView.tableHeaderView = nil
