     }
     
     func scrollViewDidScroll(scrollView: UIScrollView) {
-        //       println(scrollView.contentOffset.x)
-        //       println("total progress in %: \(scrollView.totalOffsetInPercentage())")
-        //       println("page progress in %: \(pageProgressInPercentage)")
-        
         panBackground()
         updateAnimationViewProgress()
-        pageControll.currentPage = scrollView.currentPage()
-    }
-    
-    @IBAction func startAnimation(sender: AnyObject) {
-        deviceView?.startAllAnimations(self)
+        pageControll.currentPage = scrollView.currentPage
     }
     
     func updateAnimationViewProgress(){
         
-        let progress = scrollView.pageProgressInPercentage()
+        let progress = scrollView.pageProgressInPercentage
         
         switch progress{
         case -1.0...1.0:
             firstAnimationView.progress =  progress
             logoImageView.center.y = CGFloat(abs(Int32(scrollView.contentOffset.x + ((scrollView.frame.height / 2 ))))) - logoImageView.frame.height
             welcomeLabel.center.y = logoImageView.center.y + welcomeLabel.frame.height/3
-            //logoImageView.alpha = 1 - progress
+            logoImageView.alpha = 1 - progress
             logoImageView.hidden = false
             welcomeLabel.hidden = false
         case 1.0...2.0:

        scrollView.addSubview(firstAnimationText)
        
        secondAnimationView = LockView(frame: CGRectMake(viewOffset*2, 0, viewSize.width, viewSize.height))
        //secondAnimationView.backgroundColor = UIColor.redColor()
        scrollView.addSubview(secondAnimationView!)
        secondAnimationView.constraints()
        

    @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))
