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

    var iconImage:UIImage!
    var iconImageView:UIImageView!
    var closeAction:(()->Void)!
    
    enum FontType {
        case Title, Text, Button

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