               #   defaultValue         : no
 
     modal = new KDModalViewWithForms modalOptions
-    modal.modalTabs.forms["General Settings"].on "FormValidationFailed", ->
-      modal.modalTabs.forms["General Settings"].buttons.Save.hideLoader()
+    form = modal.modalTabs.forms["General Settings"]
+    form.on "FormValidationFailed", ->
+      form.buttons.Save.hideLoader()
 
   handleError =(err, buttons)->
     unless buttons

        else
          slugInput.unsetClass 'slug-taken'

    makeSlug = ()=>
      titleInput = modal.modalTabs.forms["General Settings"].inputs.Title
      slugInput = modal.modalTabs.forms["General Settings"].inputs.Slug
      KD.remote.api.JGroup.suggestUniqueSlug titleInput.getValue(), (err, newSlug)->
        slugInput.setValue newSlug

    getGroupType = ->
      modal.modalTabs.forms["Select group type"].inputs.type.getValue()


  showGroupSubmissionView:->

    verifySlug = ->
      slugInput = modal.modalTabs.forms["General Settings"].inputs.Slug
      KD.remote.api.JName.one
        name: slugInput.getValue()
