     override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
         coordinator.animateAlongsideTransition({ context in
             self._webView!.frame = CGRectMake(0, 0, size.width, size.height)
+            let availHeight = size.height - 88 - CGFloat(self._keyboardHeight)
+            if let suggestionsTableView = self._suggestionsTableView {
+                suggestionsTableView.frame = CGRectMake(0, 44, size.width, availHeight)
+            }
+            if let settingsBar = self._settingsBarView {
+                settingsBar.frame = CGRectMake(0, self.view.frame.height, self.view.frame.width, 44)
+            }
+            if let topBorder = self._topBorder {
+                topBorder.frame = CGRectMake(0, 0, self._settingsBarView!.frame.width, 0.5)
+            }
+            if let settingsButton = self._settingsButton {
+                var settingsFrame = settingsButton.frame
+                settingsFrame.origin.x = self._settingsBarView!.frame.width - settingsFrame.width - 14
+                settingsFrame.origin.y = 7
+                settingsButton.frame = settingsFrame
+            }
         }, completion: nil)
     }
     

    var _effectView: UIVisualEffectView?
    var _errorView: UIView?
    var _settingsBarView: UIView?
    var _defaultsObject: NSUserDefaults?
    var _onboardingViewController: OnboardingViewController?
    var _isCurrentPageLoaded = false

        clearFrame.origin.y = 7
        _clearHistoryButton!.frame = clearFrame

        _settingsButton!.addTarget(self, action: "presentSettingsView:", forControlEvents: .TouchUpInside)
        _clearHistoryButton!.addTarget(self, action: "didTapClearHistory:", forControlEvents: .TouchUpInside)
        
        _topBorder = UIView()
        _topBorder!.frame = CGRectMake(0, 0, _settingsBarView!.frame.width, 0.5)
        _topBorder!.backgroundColor = LIGHT_GREY_BORDER
        
        _settingsBarView?.addSubview(_topBorder!)
        _settingsBarView?.addSubview(_settingsButton!)
        _settingsBarView?.addSubview(_clearHistoryButton!)
        self.view.addSubview(_settingsBarView!)

