 
       else
         return callback yes
-
-    return  if @dialogIsOpen
 
     modal = new KDModalView
       title          : "Approval required"

      KD.getGroup().fetchProducts 'pack', options, (err, packs) ->
        return  if KD.showError err
        
        productForm.setContents packs

    workflow = new PaymentWorkflow
      productForm : productForm
      confirmForm : new VmPaymentConfirmForm
    
    modal = new BuyModal
      title       : "Create a new VM"
      workflow    : workflow

    workflow.enter()

    workflow.on 'DataCollected', -> debugger

    @dialogIsOpen = yes
    modal.once 'KDModalViewDestroyed', => @dialogIsOpen = no

  showPaymentMethodForm: (modal) ->


            modal.destroy()

  createPaidVM:->

    productForm = new VmProductForm

    paymentController = KD.getSingleton 'paymentController'
