             UIView.animateWithDuration(0.3, delay: 0.1, options: UIViewAnimationOptions.TransitionCurlDown, animations: { () -> Void in
                 self.AnimationMenuView.backgroundColor = UIColor(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.0)
                 }, completion: { _ in
-                    self.view.sendSubviewToBack(self.AnimationMenuView)
             })
+            
+            self.view.sendSubviewToBack(self.AnimationMenuView)
         }
         
     }
     
     func onTap(gestureRecognizer: UITapGestureRecognizer){
-        print("tap")
+        if(menushow == 1){
+            print("tap")
+        }else{
+        }
     }
     
     func ScreenTransitionButtontapped(sender: UIButton){

                
                for(var i = 0; i < 4; i++){
                    self.screentransitionbuttonarray[i].alpha = 0.0
                    self.GestureRecognizerViewArray[i].addGestureRecognizer(self.tap[i])
                    self.AnimationMenuView.addSubview(self.GestureRecognizerViewArray[i])
                    self.AnimationMenuView.sendSubviewToBack(self.GestureRecognizerViewArray[i])

                }
                
                },

            
            screentransitionbuttonarray.append(screentransitionbuttonwork)
            GestureRecognizerViewArray.append(GestureRecognizerViewwork)
            tap.append(tapwork)
            screentransitionbuttonarray[i].tag = i
            GestureRecognizerViewArray[i].tag = i
            AnimationMenuView.addSubview(screentransitionbuttonarray[i])
            GestureRecognizerViewArray[i].addGestureRecognizer(tap[i])
            AnimationMenuView.addSubview(GestureRecognizerViewArray[i])
            AnimationMenuView.sendSubviewToBack(GestureRecognizerViewArray[i])
        }
        
        
