 class RGProjectsViewController: UIViewController {
 
     let viewModel = ViewModel()
-    let arrayWithProjects = NSMutableArray(array: Projects.ArrayWithProjects)
+    var arrayWithProjects = NSMutableArray(array: Projects.ArrayWithProjects)
     var panGestureRecognizer = UIPanGestureRecognizer()
     var scrollView = UIScrollView()
     var mainView = UIView()

                self.mainView.removeGestureRecognizer(self.panGestureRecognizer)
                self.arrayWithProjects.removeObjectAtIndex(0)

                prepareCards()
            }
        }

        self.viewModel.setTitleProject(self.mainView, text: dictionary["title"] as! String)
        self.viewModel.setSubtitleProject(self.mainView, text: dictionary["position"] as! String)

        self.backgroundImageView.alpha = 0
        self.backgroundImageView.image = UIImage(named: "\(imageName)-blur")

        UIView.animateWithDuration(0.3, animations: { () -> Void in
            self.backgroundImageView.alpha = 1
        })

        self.mainView.addGestureRecognizer(self.panGestureRecognizer)

        self.mainView.transform = CGAffineTransformRotate(CGAffineTransformMakeScale(0.3, 0.3), CGFloat(rand()%RAND_MAX) / CGFloat(RAND_MAX) - 0.5)

        UIView.animateWithDuration(0.5, delay: 0, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.4, options: UIViewAnimationOptions.CurveEaseInOut, animations: { () -> Void in
            self.mainView.transform = CGAffineTransformIdentity
        }, completion: nil)
    }
