     }
     
     func prepareHeaderLabel() {
+        headerLabel.translatesAutoresizingMaskIntoConstraints = false
         headerLabel.backgroundColor = .clear
         headerLabel.lineBreakMode = NSLineBreakMode.byTruncatingMiddle
         headerLabel.font = T2GStyle.Node.nodeTitleFont
         headerLabel.textColor = T2GStyle.Node.nodeTitleColor
         headerLabel.text = header
-        headerLabel.translatesAutoresizingMaskIntoConstraints = false
         if mode == .table {
             backgroundView.addSubview(headerLabel)
             backgroundView.addConstraints([ // HEADER LABEL

    var backgroundButton: FlatButton = FlatButton()
    
    
    var imageView: UIImageView = UIImageView()
    var headerLabel: UILabel = UILabel()
    var detailLabel: UILabel = UILabel()
    
    var infoView: View = View()
    var bookmarkImageView: UIImageView = UIImageView()

    }
    
    func prepareDetailLabel() {
        detailLabel.translatesAutoresizingMaskIntoConstraints = false
        detailLabel.backgroundColor = .clear
        detailLabel.lineBreakMode = NSLineBreakMode.byTruncatingMiddle
        detailLabel.font = T2GStyle.Node.nodeDescriptionFont
        detailLabel.textColor = T2GStyle.Node.nodeDescriptionColor
        detailLabel.text = detail
        backgroundView.addSubview(detailLabel)
        backgroundView.addConstraints([ // DETAIL LABEL
            NSLayoutConstraint(item: detailLabel, attribute: .leading, relatedBy: .equal, toItem: imageView, attribute: .trailing, multiplier: 1, constant: 20),
            NSLayoutConstraint(item: detailLabel, attribute: .trailing, relatedBy: .equal, toItem: backgroundView, attribute: .trailing, multiplier: 1, constant: -42),
            NSLayoutConstraint(item: detailLabel, attribute: .top, relatedBy: .equal, toItem: headerLabel, attribute: .bottom, multiplier: 1, constant: 5),
            ])
    }
    
    func prepareProgressView() {
        progressBar.translatesAutoresizingMaskIntoConstraints = false
        progressBar.backgroundColor = Color.clear
        progressBar.tintColor = Color.teal.accent4
        progressBar.isHidden = true
        progressBar.progress = 1
        backgroundView.addSubview(progressBar)
        backgroundView.addConstraints([
            NSLayoutConstraint(item: progressBar, attribute: .centerY, relatedBy: .equal, toItem: detailLabel, attribute: .centerY, multiplier: 1, constant: 0),
            NSLayoutConstraint(item: progressBar, attribute: .leading, relatedBy: .equal, toItem: imageView, attribute: .trailing, multiplier: 1, constant: 20),
            NSLayoutConstraint(item: progressBar, attribute: .trailing, relatedBy: .equal, toItem: backgroundView, attribute: .trailing, multiplier: 1, constant: -20),
            ])
    }
    
