 
     options.view = new DashboardAppView
       testPath   : "groups-dashboard"
-    data or= KD.getSingleton("groupsController").getCurrentGroup()
+
+    data or= (KD.getSingleton "groupsController").getCurrentGroup()
 
     super options, data
 

  createBillingInfoModal: ->

    paymentController = KD.getSingleton "paymentController"
    
    billingInfoModal = paymentController.createBillingInfoModal 'group', {}
    
    paymentController.fetchBillingInfo 'group', (err, groupBillingInfo) ->

      if groupBillingInfo


  paymentViewAdded: (pane, view) ->
    paymentController = KD.getSingleton 'paymentController'

    group = @getData()

    group.fetchPaymentMethod (err, paymentMethod) ->
      console.log { err, paymentMethod }
    # paymentController.fetchBillingInfo 'group', (err, billingInfo) =>
      view.setBillingInfo paymentMethod

    @paymentView = view

    { loader }  = view.settingsForm.inputs.billing

    view.on 'BillingEditRequested', =>
      loader.show()
      @showBillingInfoModal ->
