 
 extension RecentlyClosedTabsPanel: Themeable {
     func applyTheme() {
-        historyBackButton.applyTheme()
         tableViewController.tableView.reloadData()
     }
 }

        tableViewController.recentlyClosedTabsPanel = self

        self.addChild(tableViewController)
        self.view.addSubview(tableViewController.view)
        self.view.addSubview(historyBackButton)
        self.view.addSubview(recentlyClosedHeader)

        historyBackButton.snp.makeConstraints { make in
            make.top.left.right.equalTo(self.view)
            make.height.equalTo(50)
            make.bottom.equalTo(recentlyClosedHeader.snp.top)
        }

        recentlyClosedHeader.snp.makeConstraints { make in
            make.top.equalTo(historyBackButton.snp.bottom)
            make.height.equalTo(20)
            make.bottom.equalTo(tableViewController.view.snp.top).offset(-10)
            make.left.right.equalTo(self.view)
        }

        tableViewController.view.snp.makeConstraints { make in
            make.left.right.bottom.equalTo(self.view)
        }

        tableViewController.didMove(toParent: self)

        navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done) { _ in
            self.dismiss(animated: true, completion: nil)
        }
    }

    @objc fileprivate func historyBackButtonWasTapped(_ gestureRecognizer: UITapGestureRecognizer) {
        _ = self.navigationController?.popViewController(animated: true)
    }

}

class RecentlyClosedTabsPanelSiteTableViewController: SiteTableViewController {

    weak var libraryPanelDelegate: LibraryPanelDelegate?
    let profile: Profile

    fileprivate lazy var tableViewController = RecentlyClosedTabsPanelSiteTableViewController(profile: profile)

    init(profile: Profile) {
        self.profile = profile
