         }
     }
 
-    @objc private func SELrefresh() {
-        self.refreshControl?.beginRefreshing()
-        refresh()
+    @objc private func SELrefreshTabs() {
+        refreshTabs()
     }
 
 }


    private func startRefreshing() {
        if let refreshControl = self.refreshControl {
            if !refreshControl.refreshing {
                let height = -refreshControl.bounds.size.height
                self.tableView.setContentOffset(CGPointMake(0, height), animated: true)
                refreshControl.beginRefreshing()
            }
        }
    }

    func endRefreshing() {
        self.refreshControl?.endRefreshing()
        self.tableView.scrollEnabled = true
        self.tableView.reloadData()
    }


    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        refreshControl?.addTarget(self, action: "SELrefreshTabs", forControlEvents: UIControlEvents.ValueChanged)
        refreshTabs()
    }

    override func viewDidDisappear(animated: Bool) {
        super.viewDidDisappear(animated)
        refreshControl?.removeTarget(self, action: "SELrefreshTabs", forControlEvents: UIControlEvents.ValueChanged)
    }

    func notificationReceived(notification: NSNotification) {
        switch notification.name {
        case NotificationFirefoxAccountChanged, NotificationPrivateDataCleared:
            refreshTabs()
            break
        default:
            // no need to do anything at all
