 
     @billingMethod = new BillingMethodView {}, @getData().billing
 
+    @billingMethod.on 'BillingEditRequested', =>
+      @emit 'PaymentMethodEditRequested', data
+
     @editLink = new CustomLinkView
       title: 'edit'
-      click: => @emit 'PaymentMethodEditRequested', data
+      click: (e) =>
+        e.preventDefault()
+        @emit 'PaymentMethodEditRequested', data
 
     @removeLink = new CustomLinkView
       title: 'remove'
-      click: => @emit 'PaymentMethodRemoveRequested', data
+      click: (e) =>
+        e.preventDefault()
+        @emit 'PaymentMethodRemoveRequested', data
 
   viewAppended: JView::viewAppended
 


    list.on 'reload', (data) => @loadItems()

  editPaymentMethod: ({ accountCode }) ->
    @showModal()

  removePaymentMethod: ({ accountCode }, item) ->
    paymentController = KD.getSingleton 'paymentController'

      iconClass : "plus"
      callback  : => @showModal()

  showModal: (initialBillingInfo) ->
    paymentController = KD.getSingleton 'paymentController'

    modal = paymentController.createBillingInfoModal()

    modal.setBillingInfo initialBillingInfo.billing  if initialBillingInfo?

    modal.on 'PaymentInfoSubmitted', (updatedBillingInfo) =>
      paymentController.updateBillingInfo updatedBillingInfo, (err, res) =>
        if err
          new KDNotificationView title: err.message
        else
          modal.destroy()
          @loadItems()



