         view.backgroundColor = UIColor.whiteColor()
 
         summaryHeaderView = SummaryHeaderView()
-        summaryHeaderView.view.translatesAutoresizingMaskIntoConstraints = false
         
         summaryView = SummaryTableViewController()
         summaryView.delegate = self
-        summaryView.view.translatesAutoresizingMaskIntoConstraints = false
                 
         addExpenseButton = createButton("+Expense", font: UIFont(name: "HelveticaNeue",size: 24)!)
 

    var addMemberButton:UIButton!

    var verticalConstraints:[NSLayoutConstraint]?
    var views:[String:AnyObject]!

    var group:Group!
    

        expensesTableView = ExpensesTableViewController()
        expensesTableView.delegate = self
        expensesTableView.view.translatesAutoresizingMaskIntoConstraints = false

        addChildViewController(summaryHeaderView)
        addChildViewController(summaryView)
        addChildViewController(expensesTableView)

        view.addSubview(summaryHeaderView.view)
        view.addSubview(summaryView.view)
        view.addSubview(addExpenseButton)
        view.addSubview(addMemberButton)
        view.addSubview(expensesTableView.view)

        components = [summaryHeaderView.view, summaryView.view, addExpenseButton, addMemberButton, expensesTableView.view]

        var summaryHeight = min(group.members.count * 50, 250)

        let verticalRules = [
                VerticalConstraintRules().withMarginTop(72).withHeight(30).withSnapTop(view.snp_top),
                VerticalConstraintRules().withHeight(summaryHeight).withSnapTop(summaryHeaderView.view.snp_bottom),
                VerticalConstraintRules().withHeight(38).withSnapTop(summaryView.view.snp_bottom),
                VerticalConstraintRules().withHeight(38).withSnapTop(summaryView.view.snp_bottom),
                VerticalConstraintRules().withSnapTop(addExpenseButton.snp_bottom).withSnapBottom(view.snp_bottom),
        ]
        let horizontalRules = [
                HorizontalConstraintRules().withSnapLeft(view.snp_left).withSnapRight(view.snp_right),
                HorizontalConstraintRules().withSnapLeft(view.snp_left).withSnapRight(view.snp_right),
                HorizontalConstraintRules().withSnapLeft(view.snp_left).withMarginLeft(8),
                HorizontalConstraintRules().withSnapRight(view.snp_right).withMarginRight(8),
                HorizontalConstraintRules().withSnapLeft(view.snp_left).withSnapRight(view.snp_right)
        ]

        SnapKitHelpers.setVerticalConstraints(view, components: components, rules: verticalRules)
        SnapKitHelpers.setHorizontalConstraints(view, components: components, rules: horizontalRules)
    }

    func GroupMembershipChanged(notification:NSNotification){
        updateVerticalConstraints()
    }

    func updateVerticalConstraints() {
        var summaryHeight = min(group.members.count * 50, 250)

        let verticalRules = [
                VerticalConstraintRules().withMarginTop(72).withHeight(30).withSnapTop(view.snp_top),
                VerticalConstraintRules().withHeight(summaryHeight).withSnapTop(summaryHeaderView.view.snp_bottom),
                VerticalConstraintRules().withHeight(38).withSnapTop(summaryView.view.snp_bottom),
                VerticalConstraintRules().withHeight(38).withSnapTop(summaryView.view.snp_bottom),
                VerticalConstraintRules().withSnapTop(addExpenseButton.snp_bottom).withSnapBottom(view.snp_bottom),
        ]

        SnapKitHelpers.updateVerticalConstraints(view, components: components, rules: verticalRules)
        super.updateViewConstraints()
    }

    func refreshData(){
