                 self.endRefreshing()
             }
 
-            self.historyPanel?.updateNumberOfSyncedDevices()
+            self.historyPanel?.updateSyncedDevicesCount().uponQueue(dispatch_get_main_queue()) { result in
+                self.historyPanel?.updateNumberOfSyncedDevices(self.historyPanel?.currentSyncedDevicesCount)
+            }
         }
     }
 

        tableViewController.historyPanel = self

        self.addChildViewController(tableViewController)
        self.view.addSubview(tableViewController.view)
        self.view.addSubview(syncedTabsButton)
        self.view.addSubview(recentlyClosedTabsButton)

        recentlyClosedTabsButton.snp_makeConstraints { make in
            make.top.leading.trailing.equalTo(self.view)
            make.height.equalTo(HistoryPanelUX.SyncedTabsCellHeight)
            make.bottom.equalTo(syncedTabsButton.snp_top)
        }

        syncedTabsButton.snp_makeConstraints { make in
            make.leading.trailing.equalTo(self.view)
            make.top.equalTo(recentlyClosedTabsButton.snp_bottom)
            make.height.equalTo(HistoryPanelUX.SyncedTabsCellHeight)
            make.bottom.equalTo(tableViewController.view.snp_top)
        }

        tableViewController.view.snp_makeConstraints { make in
            make.top.equalTo(syncedTabsButton.snp_bottom)
            make.leading.trailing.bottom.equalTo(self.view)
        }

        tableViewController.didMoveToParentViewController(self)
    }

    override func viewWillAppear(animated: Bool) {

        recentlyClosedTabsButton.enabled = profile.recentlyClosedTabs.tabs.count > 0
    }

    func updateNumberOfSyncedDevices(count: Int?) {
        if let count = count where count > 0 {
            self.syncedTabsButton.descriptionLabel.text = String.localizedStringWithFormat(Strings.SyncedTabsTableViewCellDescription, count)
            self.syncedTabsButton.descriptionLabel.hidden = false
        } else {
            self.syncedTabsButton.descriptionLabel.hidden = true
            self.syncedTabsButton.updateConstraints()
        }
        self.syncedTabsButton.updateConstraints()
    }

    @objc private func syncedTabsCellWasTapped() {
