         tableViewController.recentlyClosedTabsPanel = self
 
         self.addChild(tableViewController)
+        tableViewController.didMove(toParent: self)
+
         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)
+        tableViewController.view.snp.makeConstraints { make in
+            make.edges.equalTo(self.view)
         }
-
-        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 recentlyClosedHeader: UILabel = {
        let headerLabel = UILabel()
        headerLabel.text = Strings.RecentlyClosedTabsPanelTitle
        headerLabel.textColor = UIColor.theme.tableView.headerTextDark
        headerLabel.font = DynamicFontHelper.defaultHelper.DeviceFontHistoryPanel
        headerLabel.textAlignment = .center
        headerLabel.backgroundColor = UIColor.theme.tableView.headerBackground
        return headerLabel
    }()

    fileprivate lazy var tableViewController = RecentlyClosedTabsPanelSiteTableViewController(profile: profile)

    fileprivate lazy var historyBackButton: HistoryBackButton = {
        let button = HistoryBackButton()
        button.accessibilityIdentifier = "goBackFromRecentlyClosedHistory"
        button.addTarget(self, action: #selector(RecentlyClosedTabsPanel.historyBackButtonWasTapped), for: .touchUpInside)
        return button
    }()

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


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