     var scrollController = BraveScrollController()
 
     private var keyboardState: KeyboardState?
+    
+    private var currentThemeName: String?
 
     let WhiteListedUrls = ["\\/\\/itunes\\.apple\\.com\\/"]
 

        let bottomToolbarIsHidden = shouldShowFooterForTraitCollection(newCollection)

        urlBar.hideBottomToolbar(!bottomToolbarIsHidden)
        toolbar?.removeFromSuperview()
        toolbar?.browserToolbarDelegate = nil
        footerBackground?.removeFromSuperview()

            toolbar?.browserToolbarDelegate = self
            footerBackground = BlurWrapper(view: toolbar!)
            footerBackground?.translatesAutoresizingMaskIntoConstraints = false
            footer.addSubview(footerBackground!)
            
            // Since this is freshly created, theme needs to be applied
            if let currentThemeName = self.currentThemeName {
                self.applyTheme(currentThemeName)
            }
        }

        view.setNeedsUpdateConstraints()
