         addChildViewController(centerNavigationController)
         centerNavigationController.didMoveToParentViewController(self)
         
-        self.configureGestureRecognizer()
-    }
-    
-    override func viewDidLayoutSubviews() {
-        super.viewDidLayoutSubviews()
-        self.centerVCFrontBlurView.frame = self.view.frame
-    }
-
+        configureGestureRecognizer()
+    }
     
     func configureBlurView(){
         //        centerVCFrontBlurView = UIButton.buttonWithType(UIButtonType.Custom) as! UIButton
         let viewEffect = UIBlurEffect(style: .Light)
         centerVCFrontBlurView = UIVisualEffectView(effect: viewEffect)
         centerVCFrontBlurView.alpha = 0.9
-        centerVCFrontBlurView.frame = self.view.frame
-        
-    }
-    
-    func configureGestureRecognizer(){
-        let panGestureRecognizer = UIScreenEdgePanGestureRecognizer(target: self, action: "handlePanGesture:")
+        
+    }
+    
+    func configureGestureRecognizer() {
+        let panGestureRecognizer = UIScreenEdgePanGestureRecognizer(target: self, action: #selector(handlePanGesture(_:)))
         panGestureRecognizer.edges = UIRectEdge.Left
         centerNavigationController.view.addGestureRecognizer(panGestureRecognizer)
         //        panGestureRecognizer.delegate = self
         
-        let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: "handleTapGesture:")
+        let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(handleTapGesture(_:)))
         centerVCFrontBlurView.addGestureRecognizer(tapGestureRecognizer)
     }
     

    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.configureBlurView()
        mainViewController = UIStoryboard.mainViewController()
        centerNavigationController = UINavigationController(rootViewController: mainViewController)
        centerNavigationController.setNavigationBarHidden(true , animated: false)

    }
    
    func animateLeftPanel(shouldExpand: Bool) {
        if shouldExpand {
            currentState = .LeftPanelExpanded
            animateCenterPanelXPosition(kExpandedOffSet)
        } else {
