                 menuWasHiddenAtStartOfPan = self.isLeftHidden()
                 self.leftViewController?.beginAppearanceTransition(menuWasHiddenAtStartOfPan, animated: true)
                 self.addShadowToView(self.leftContainerView)
+                self.setOpenWindowLevel()
             case UIGestureRecognizerState.Changed:
                 
                 var translation: CGPoint = panGesture.translationInView(panGesture.view!)

        self.setUpViewController(self.rightContainerView, targetViewController: self.rightViewController)
    }
    
    
    
    
    func handleWillEnterForegroundNotification(notif: NSNotification) {
        self.closeLeft()
        self.closeRight()

            rightViewWasHiddenAtStartOfPan = self.isRightHidden()
            self.rightViewController?.beginAppearanceTransition(rightViewWasHiddenAtStartOfPan, animated: true)
            self.addShadowToView(self.rightContainerView)
            self.setOpenWindowLevel()
        case UIGestureRecognizerState.Changed:
            
            var translation: CGPoint = panGesture.translationInView(panGesture.view!)
