             secondAnimationView.progress = 3 - progress
         case 3.0...5.0:
             thirdAnimationView.progress = 4 - progress
-            //getStartedButton.frame.origin.y = (scrollView.contentSize.width - scrollView.contentOffset.x) - (scrollView.frame.height/4)
+            getStartedButton.frame.origin.y = (scrollView.frame.width*4.2 - scrollView.contentOffset.x)
             //pageControll.frame.origin.y = getStartedButton.frame.origin.y - getStartedButton.frame.height
             pageControll.alpha = (4 - progress)*3
             logoImageView.hidden = true

        scrollView.addSubview(secondAnimationText)
        
        thirdAnimationView = ReceiptView(frame: CGRectMake(viewOffset*3, 0, viewSize.width, viewSize.height))
        //thirdAnimationView.backgroundColor = UIColor.redColor()
        scrollView.addSubview(thirdAnimationView!)
        
        let thirdAnimationText = UILabel(frame: CGRectMake(thirdAnimationView.frame.origin.x, thirdAnimationView.frame.origin.y + viewSize.width/3 , viewSize.width/2, viewSize.height/2))

    @IBOutlet var bgImageView: UIImageView!
    @IBOutlet var bgMaskImageView: UIImageView!
    @IBOutlet var bgParallaxImageView: UIImageView!
    // First page elements
    @IBOutlet var logoImageView: UIImageView!
    @IBOutlet var welcomeLabel: UILabel!
    // AnimationViews
    var firstAnimationView: DeviceView!
    var secondAnimationView: LockView!
    var thirdAnimationView: ReceiptView!
    // ParallaxRates
    let backgroundParallaxRate:CGFloat = 0.5
    let mountainParallaxRate: CGFloat = 0.57
    
    @IBOutlet var scrollView: UIScrollView!
    @IBOutlet var getStartedButton: UIButton!
    @IBOutlet var pageControll: UIPageControl!
    
    var initialButtonPostionY:CGFloat = 0
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        initialButtonPostionY = getStartedButton.center.y
    }

    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        
        let pageSize = view.frame.size
        let numOfPages:CGFloat = 5
        scrollView.delegate = self
        scrollView.contentSize = CGSizeMake(pageSize.width * numOfPages, pageSize.height)
        
        panBackground()
      
        println(bgImageView.frame)
        println(bgMaskImageView.frame)
        println(bgParallaxImageView.frame)
     
        // Setup animation views
        setupAnimationViews()
    }
    
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        panBackground()
    }

    
    func setupAnimationViews(){
        
        let pageCenter = scrollView.frame.midY - (view.frame.width/4)
        let viewOffset = scrollView.frame.width
        let viewSize = CGSize(width: scrollView.frame.width, height: scrollView.frame.height)
        
        firstAnimationView = DeviceView(frame: CGRectMake(viewOffset, 0, viewSize.width, viewSize.height))
        scrollView.addSubview(firstAnimationView!)
        
        let firstAnimationText = UILabel(frame: CGRectMake(firstAnimationView.frame.origin.x, firstAnimationView.frame.origin.y + viewSize.width/3 , viewSize.width/2, viewSize.height/2))
