 
     override func viewDidLoad() {
         super.viewDidLoad()
-
-        edgesForExtendedLayout = .None
-        automaticallyAdjustsScrollViewInsets = false
-
+        
         view.backgroundColor = UIColor.whiteColor()
-        
         installActivityIndicator()
     }
 

        view.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("V:|[view]|", options: nil, metrics: nil, views: [ "view": webView ]))
        view.sendSubviewToBack(webView)

        installRefreshControl()
    }


        webView?.removeFromSuperview()
        webView = nil
    }
    
    override func traitCollectionDidChange(previousTraitCollection: UITraitCollection?) {
        super.traitCollectionDidChange(previousTraitCollection)
        updateWebViewScrollViewInsets()
    }

    private func updateWebViewScrollViewInsets() {
        let insets = UIEdgeInsets(top: topLayoutGuide.length, left: 0, bottom: bottomLayoutGuide.length, right: 0)
        webView?.scrollView.scrollIndicatorInsets = insets
        webView?.scrollView.contentInset = insets
    }
    
    // MARK: Activity Indicator

    lazy var activityIndicator: UIActivityIndicatorView = {
