     let keyPathButton: UIButton = {
         let button = UIButton(type: .Custom)
         button.setContentHuggingPriority(901, forAxis: UILayoutConstraintAxis.Horizontal)
+        button.setContentCompressionResistancePriority(900, forAxis: UILayoutConstraintAxis.Horizontal)
         button.contentHorizontalAlignment = .Left
         button.setTitleColor(kButtonTint, forState: UIControlState.Normal)
         return button

    
    let comparisonButton: UIButton = {
        let button = UIButton(type: .Custom)
        button.setContentHuggingPriority(900, forAxis: UILayoutConstraintAxis.Horizontal)
        button.contentHorizontalAlignment = .Left
        button.setTitleColor(UIColor.magentaColor(), forState: UIControlState.Normal)
        return button

    let buttonStackView: UIStackView = {
        let stackView = UIStackView(frame: CGRectZero)
        stackView.axis = .Horizontal
        stackView.distribution = .Fill
        stackView.spacing = 8
        stackView.clipsToBounds = true
        return stackView
    }()

