 
       .on("EditRequested", handleEdit)
 
+      .on("AddProductsRequested", @bound 'showAddProductsModal')
+
       .on "DeleteRequested", (data) ->
         confirmDelete data, ->
           konstructor.removeByCode data.planCode, handleResponse
-
-      .on "AddProductsRequested", (data) ->
-        modal = new GroupPlanAddProductsModal {}, data
-        modal.on 'ProductsAdded', -> debugger
 
       .on "BuyersReportRequested", (data) ->
         debugger # needs to be implemented


  getConstructor = (category) ->
    KD.remote.api["JPayment#{ category.capitalize() }"]


    konstructor = getConstructor category

    do reload = =>
      @fetchProducts category, (err, products) ->
        view.setProducts category, products

    handleResponse = (err) ->
      return  if KD.showError err
