     }
     
     func removeView() {
+        isAlertOpen = false
         self.view.removeFromSuperview()
     }
     
 }
+
 
 
 

        // Second cancel button
        if let btnText = cancelButtonText {
            self.cancelButton = UIButton()
            let buttonColor = UIImage.withColor(adjustBrightness(baseColor!, 0.85))
            let buttonHighlightColor = UIImage.withColor(adjustBrightness(baseColor!, 0.9))
            cancelButton.setBackgroundImage(buttonColor, forState: .Normal)
            cancelButton.setBackgroundImage(buttonHighlightColor, forState: .Highlighted)

                
        })
        
        isAlertOpen = true
        return JSSAlertViewResponder(alertview: self)
    }
    
