     console.log "Setting form action to #{methodLower} #{url}"
     @form.attr("action", url)
     @form.attr("method", "post")
+    @form.formwizard("option", remoteAjax: this.ajaxEvents())
     methodField = @form.find('input[name="_method"]')
     methodField.remove()
     if methodLower isnt "post"

  fieldsets: ->
    @form.find("fieldset")

  ajaxEvents: (firstStep=false) ->
    remoteAjax = {}
    $fieldsets = this.fieldsets()
    $fieldsets = $fieldsets.filter(":first") if firstStep
    $fieldsets.each (index, element) =>
      stepId = $(element).attr("id")
      remoteAjax[stepId] = this.createAjaxEvent(stepId)

      if buttons?
        this.setButton(name, label) for own name, label of buttons

    @form.bind "after_remote_ajax", (event, data) =>
      if hatTrick.metadata?.currentStep.buttons?
        stepId = hatTrick.metadata.currentStep.fieldset
