         NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CliqzSearchViewController.fixViewport), name: UIDeviceOrientationDidChangeNotification, object: UIDevice.currentDevice())
 
     }
+
     func fixViewport() {
         if #available(iOS 9.0, *) {
             return

		self.spinnerView.stopAnimating()
	}
	
	private func updateContentBlockingPreferences() {
		let isBlocked = self.profile.prefs.boolForKey("blockContent") ?? true
		let params = ["adultContentFilter" : isBlocked ? "moderate" : "liberal"]
        javaScriptBridge.callJSMethod("jsAPI.setClientPreferences", parameter: params, completionHandler: nil)
	}
    
    private func updatePrivateModePreferences() {
        let params = ["incognito" : self.privateMode]
        javaScriptBridge.callJSMethod("jsAPI.setClientPreferences", parameter: params, completionHandler: nil)
    }
    
    
    //MARK: - Reset TopSites
    func showBlockedTopSites(notification: NSNotification) {
        javaScriptBridge.callJSMethod("jsAPI.restoreBlockedTopSites", parameter: nil, completionHandler: nil)

		}

		javaScriptBridge.setDefaultSearchEngine()
		self.updateExtensionPreferences()
	}

    override func viewWillDisappear(animated: Bool) {
		super.viewWillDisappear(animated)
