         rightContainerView.backgroundColor = UIColor.clearColor()
         rightContainerView.autoresizingMask = UIViewAutoresizing.FlexibleHeight
         view.insertSubview(rightContainerView, atIndex: 3)
+        
+        if SlideMenuOptions.mainContainerViewAlwaysOnTop {
+            view.bringSubviewToFront(mainContainerView)
+        }
         
         addLeftGestures()
         addRightGestures()

                } else {
                    if LeftPanState.wasHiddenAtStartOfPan {
                        leftViewController?.beginAppearanceTransition(false, animated: true)
                    }
                    closeLeftWithVelocity(panInfo.velocity)
                    setCloseWindowLebel()
                    
                    track(.FlickClose)

                }
        default:
            break

    }
    
    private func addShadowToView(targetContainerView: UIView) {
        
        var beizerPath: CGPath = UIBezierPath(rect: targetContainerView.bounds).CGPath
        if SlideMenuOptions.mainContainerViewAlwaysOnTop {
            beizerPath = UIBezierPath(rect: CGRectInset(targetContainerView.bounds, -1 * SlideMenuOptions.shadowOffset.width, -1 * SlideMenuOptions.shadowOffset.height)).CGPath
        }
        
        targetContainerView.layer.masksToBounds = false
        targetContainerView.layer.shadowOffset = SlideMenuOptions.shadowOffset
        targetContainerView.layer.shadowOpacity = Float(SlideMenuOptions.shadowOpacity)
        targetContainerView.layer.shadowRadius = SlideMenuOptions.shadowRadius
        targetContainerView.layer.shadowPath = beizerPath
    }
    
    private func removeShadow(targetContainerView: UIView) {
