     }
     
     func setActive() {
+        active = true
+        pending = false
         queueEstimateLabel.isHidden = true
         queuePosLabel.isHidden = true
         centerImage.image = UIImage(named: "center_in")
     }
     
     func setInActive() {
+        pending = false
+        active = false
         centerImage.image = UIImage(named: "center")
         queueEstimateLabel.isHidden = false
         queuePosLabel.isHidden = false

    @IBOutlet weak var centerImage: UIImageView!
    
    var inQueue = false
    var aheadOfYou = 3
    var queueSize = 3
    var karmaPoints = 85

            queuePosLabel.text = "\(aheadOfYou)"
        }
        
        if aheadOfYou == 0 && !pending {
            setPending()
        }
    }

    
    func setPending() {
        pending = true
        active = false
        queueEstimateLabel.isHidden = false
        queuePosLabel.isHidden = true
        urgentButton.isHidden = true
