 					dispatch_async(dispatch_get_main_queue()) {
 						self.newsEntries.addObjectsFromArray(entries)
 						self.tableView!.reloadData()
-
+						self.refreshControl?.endRefreshing()
 						return
 					}
 				}

	let cellIdentifier = "tableCell"
	var newsEntries = NSMutableOrderedSet()
	let APIKEY: String = ""

	@IBOutlet weak var tableView: UITableView!

	// MARK: Lifecycle
	


		self.tableView!.dataSource = self
		
        getHighFiJSON(highFiEndpoint)
		
		self.refreshControl = UIRefreshControl()
		self.refreshControl.attributedTitle = NSAttributedString(string: "Vedä alas päivittääksesi")
		self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
		self.tableView.addSubview(refreshControl)

        // Uncomment the following line to preserve selection between presentations
        // self.clearsSelectionOnViewWillAppear = false
    }
	
	func refresh(sender:AnyObject) {
		getHighFiJSON(highFiEndpoint)
	}
	
	override func viewDidAppear(animated: Bool) {
		super.viewDidAppear(animated)
