     // Members declaration
     var labelTitle = UILabel()
     var viewText = UITextView()
-    var shadowView = UIView()
     var contentView = UIView()
-    var circleView = UIView()
-    var circleViewBackground = UIView()
+    var circleBG = UIView(frame:CGRect(x:0, y:0, width:kCircleHeightBackground, height:kCircleHeightBackground))
+	var circleView = UIView()
     var circleIconImageView = UIImageView()
 	var rootViewController:UIViewController!
     var durationTimer: NSTimer!

			}
		}
		// Set background frame
		shadowView.frame.size = sz
		// Set frames
		var r:CGRect
		if view.superview != nil {
			// View is showing, position at center of screen
			r = CGRect(x:(sz.width-kWindowWidth)/2, y:(sz.height-kWindowHeight)/2, width: kWindowWidth, height: kWindowHeight)
		} else {
			// View is not visible, position outside screen bounds
			r = CGRect(x:(sz.width-kWindowWidth)/2, y:-kWindowHeight, width: kWindowWidth, height: kWindowHeight)
		}
		view.frame = r
		contentView.frame = CGRect(x: 0, y: kCircleHeight / 4, width: kWindowWidth, height: kWindowHeight)
		circleViewBackground.frame = CGRect(x: kWindowWidth / 2 - kCircleHeightBackground / 2, y: kCircleBackgroundTopPosition, width: kCircleHeightBackground, height: kCircleHeightBackground)
		circleViewBackground.layer.cornerRadius = circleViewBackground.frame.size.height / 2
		circleView.frame = CGRect(x: kWindowWidth / 2 - kCircleHeight / 2, y: kCircleTopPosition, width: kCircleHeight, height: kCircleHeight)
		circleView.layer.cornerRadius = circleView.frame.size.height / 2
		circleIconImageView.frame = CGRect(x: kCircleHeight / 2 - kCircleIconHeight / 2, y: kCircleHeight / 2 - kCircleIconHeight / 2, width: kCircleIconHeight, height: kCircleIconHeight)
		labelTitle.frame = CGRect(x:12, y:kCircleHeight / 2 + 12, width: kWindowWidth - 24, height:40)
		viewText.frame = CGRect(x:12, y:74, width: kWindowWidth - 24, height:kTextHeight)
		// Text fiels
		var y = 74.0 + kTextHeight + 14.0
		for txt in inputs {
			txt.frame = CGRect(x:12, y:y, width:kWindowWidth - 24, height:30)
			txt.layer.cornerRadius = 3

    
    required override init() {
		super.init()
		// Set up main view
		view.frame = UIScreen.mainScreen().bounds
		view.autoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth
		view.backgroundColor = UIColor(red:0, green:0, blue:0, alpha:kDefaultShadowOpacity)
		view.addSubview(contentView)
		// Content View
        contentView.backgroundColor = UIColor(white:1, alpha:1)
        contentView.layer.cornerRadius = 5
        contentView.layer.masksToBounds = true
        contentView.layer.borderWidth = 0.5
		contentView.addSubview(labelTitle)
		contentView.addSubview(viewText)
		// Circle View
		circleBG.backgroundColor = UIColor.whiteColor()
		circleBG.layer.cornerRadius = circleBG.frame.size.height / 2
		view.addSubview(circleBG)
		circleBG.addSubview(circleView)
		circleView.addSubview(circleIconImageView)
		var x = (kCircleHeightBackground - kCircleHeight) / 2
		circleView.frame = CGRect(x:x, y:x, width:kCircleHeight, height:kCircleHeight)
		circleView.layer.cornerRadius = circleView.frame.size.height / 2
		x = (kCircleHeight - kCircleIconHeight) / 2
		circleIconImageView.frame = CGRect(x:x, y:x, width:kCircleIconHeight, height:kCircleIconHeight)
        // Title
        labelTitle.numberOfLines = 1
        labelTitle.textAlignment = .Center
        labelTitle.font = UIFont(name: kDefaultFont, size:20)
		labelTitle.frame = CGRect(x:12, y:kTitleTop, width: kWindowWidth - 24, height:kTitleHeight)
        // View text
		viewText.editable = false
        viewText.textAlignment = .Center
        viewText.font = UIFont(name: kDefaultFont, size:14)
        // Colours
        contentView.backgroundColor = UIColorFromRGB(0xFFFFFF)
        labelTitle.textColor = UIColorFromRGB(0x4D4D4D)
