   removePaymentMethod: ({ accountCode }, item) ->
     paymentController = KD.getSingleton 'paymentController'
     paymentController.removePaymentMethod accountCode, =>
-      debugger
+      @removeItem item
 
   loadItems: ->
     @removeAllItems()

    list.on 'ItemWasAdded', (item) =>
      item.on 'PaymentMethodEditRequested', @bound 'editPaymentMethod'
      item.on 'PaymentMethodRemoveRequested', (data) =>
        @removePaymentMethod data, item

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


  showModal: ->
    paymentController = KD.getSingleton 'paymentController'
    modal = paymentController.createBillingInfoModal 'user', {}
    paymentController.fetchBillingInfo 'user', (err, initialBillingInfo) =>

      modal.setBillingInfo initialBillingInfo.billing  if initialBillingInfo?

      modal.on 'PaymentInfoSubmitted', (updatedBillingInfo) =>
        paymentController.updateBillingInfo updatedBillingInfo, (err, res)->
          console.log arguments
        # @addItem updatedBillingInfo



class AccountPaymentMethodsList extends KDListView
