       KD.getGroup().fetchProducts 'pack', options, (err, packs) ->
         return  if KD.showError err
         
-        productForm.setContents packs
+        productForm.setContents 'packs', packs
 
     workflow = new PaymentWorkflow
       productForm : productForm
       confirmForm : new VmPaymentConfirmForm
     
-    modal = new BuyModal
-      title       : "Create a new VM"
-      workflow    : workflow
+    modal = new KDModalView
+      title   : "Create a new VM"
+      view    : workflow
+      height  : "auto"
+      width   : 500
+      overlay : yes
+
+    workflow.on 'DataCollected', -> debugger
 
     workflow.enter()
-
-    workflow.on 'DataCollected', -> debugger
-
-    @dialogIsOpen = yes
-    modal.once 'KDModalViewDestroyed', => @dialogIsOpen = no
 
   showPaymentMethodForm: (modal) ->
 

            modal.destroy()
            callback no

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

    @dialogIsOpen = yes

  askToTurnOn:(options, callback)->

    [options, callback] = [callback, options]  if typeof options is "function"
    {appName, vmName, state} = options

    return  if @dialogIsOpen

    title   = "Your VM is turned off"
    content = """To #{if appName then 'run' else 'do this'} <b>#{appName}</b>

            modal.destroy()

  createPaidVM:->

    productForm = new VmProductForm

    paymentController = KD.getSingleton 'paymentController'
