             })
         }
     }
+    
+    func createTagBtn(x: CGFloat, title: String) {
+        let button = UIButton(type: .System)
+        button.frame = CGRectMake(x, 0, 60, self.tagsView.frame.height)
+        button.layer.cornerRadius = tagsView.frame.height / 2
+        button.layer.masksToBounds = true
+        button.backgroundColor = .lightGrayColor()
+        button.tintColor = .whiteColor()
+        button.setTitle(title, forState: UIControlState.Normal)
+        button.addTarget(self, action: #selector(HomeTableViewCell.action(_:)), forControlEvents: UIControlEvents.TouchUpInside)
+        
+        self.tagsView.addSubview(button)
+    }
+    
+    func action(sender:UIButton) {
+       print("acion was pressed \(sender.titleLabel?.text!)")
+    }
 }
 

        
        // TagsText
        if let tags = post.tags {
            var tagLabelText = ""
            
            switch tags.count {
            case 1:
                for tag in tags {
                    self.tagLabel.text = "Tag: " + tag
                }
            case 2...5:
                for tag in tags {
                    tagLabelText = tagLabelText + "\(tag) "
                }
                self.tagLabel.text = "Tags: " + tagLabelText
            default:
                print("switch default tags")
            }
            
        } else {
            self.tagLabel.text = ""
        }

        if let profileImages = post.user?.images {

    @IBOutlet weak var commentsCountLabel: UILabel!
    @IBOutlet weak var tagLabel: UILabel!
    
    @IBOutlet weak var tagsView: UIView!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        

    }
    
    @IBAction func likeButtonPressed(sender: UIButton) {
