         super.layoutSubviews()
     }
     
+    //MARK: actions
+    
+    func actionAdd(sender button:UIButton)
+    {
+        currentIndex -= 1
+        
+        if currentIndex <= 0
+        {
+            deActivateAdd()
+        }
+        else
+        {
+            activateRest()
+        }
+        
+        print()
+    }
+    
+    func actionRest(sender button:UIButton)
+    {
+        currentIndex += 1
+        
+        if currentIndex >= model.items.count - 1
+        {
+            deActivateRest()
+        }
+        else
+        {
+            activateAdd()
+        }
+        
+        print()
+    }
+    
     //MARK: private
+    
+    private func print()
+    {
+        let item:MHomeFramesItem = model.items[currentIndex]
+        label.text = item.name
+    }
     
     private func activateAdd()
     {

    private weak var layoutAddTop:NSLayoutConstraint!
    private let kButtonsHeight:CGFloat = 40
    private let kButtonsWidth:CGFloat = 50
    private let kAlphaActive:CGFloat = 1
    private let kAlphaNotActive:CGFloat = 0.2
    

        buttonRest.imageView!.clipsToBounds = true
        buttonRest.imageView!.tintColor = UIColor(white:1, alpha:0.2)
        
        let label:UILabel = UILabel()
        label.isUserInteractionEnabled = false
        label.translatesAutoresizingMaskIntoConstraints = false
        label.backgroundColor = UIColor.clear
        label.font = UIFont.medium(size:30)
        label.textAlignment = NSTextAlignment.right
        label.textColor = UIColor.white
        self.label = label
        
        addSubview(buttonAdd)
        addSubview(buttonRest)
        addSubview(label)
        
        layoutAddTop = NSLayoutConstraint.topToTop(
            view:buttonAdd,
