   preparePaymentMethods: (formData) ->
     @setState 'billing choice'
 
-    paymentField = @paymentMethodChoiceForm.fields['Payment method']
+    paymentField = @choiceForm.fields['Payment method']
 
     paymentController = KD.getSingleton 'paymentController'
 


  getAggregatedData: -> @aggregatedData

  createPaymentMethodChoiceForm:->
    form = new KDFormViewWithFields
      callback              : (formData) =>
        @addAggregateData formData

          callback          : =>
            @setState 'billing entry'

  createEntryForm: ->

    form = new BillingForm

    paymentController = KD.getSingleton 'paymentController'

    paymentController.observePaymentSave form, (err, billingInfo) =>

      { accountCode } = billingInfo

      @addAggregateData { accountCode }
      @setState 'confirm', billingInfo

    form

  getFormNames: ->
    [
      'vmTypeForm'
      'choiceForm'
      'entryForm'
      'confirmForm'
    ]

  hideForms: (forms = @getFormNames()) ->
    @[form].hide() for form in forms

  setState: (state) ->
    @hideForms()
    switch state
      when 'vm type'          then @vmTypeForm.show()
      when 'billing choice'   then @choiceForm.show()
      when 'billing entry'    then @entryForm.show()
      when 'confirm'
        @confirmForm.setData @getAggregatedData()
        @confirmForm.show()
