       formSchema.tabs.forms["Update Database"] =
         callback  : (formElements)=>
           #console.log "form update",formElements
-          @updateDatabase listItem,formElements
+          @updateDatabase listItem, formElements
         buttons :
           "Update" :
             style         : "modal-clean-gray"
             type          : "submit"
-            loader        :
-              color       : "#444444"
-              diameter    : 12
+            # loader        :
+            #   color       : "#444444"
+            #   diameter    : 12
             callback      : ->
               # log "uuuu"
           "Delete" :

    modal = @modal = new KDModalViewWithForms formSchema
          
  addDatabase:(f)=>
  
    jr = new bongo.api[f.type]
      title : f.title   ? "My Dev DB #{(Date.now()+"").substr(-2)}"
      host  : f.host    ? "localhost"
      color : f.color   ? "yellow"
      name  : f.name    ? "My Database #{(Date.now()+"").substr(-5)}"
      users : [
        username  : f.username ? "myUser#{(Date.now()+"").substr(-5)}",
        password  : f.password ? Date.now()
      ]
    .save (err,model)=>
      unless err
        log "added",jr,f
        jr.type = f.type
        itemView = @itemClass delegate:@,jr 
        @addItemView itemView
        @modal.destroy()
      else
        log "failed to add.",err

  deleteDatabase:(listItem,formElements)=>
    jr = listItem.getData()

  showAddModal : ->
    
    modal = @modal = new KDModalViewWithForms
      title                   : "Add a Database"
      content                 : ""
      overlay                 : yes
      cssClass                : "new-kdmodal"
      width                   : 500
      height                  : "auto"
      tabs                    :
        navigateable          : yes
        goToNextFormOnSubmit  : no
        callback              : (formOutput)-> log formOutput
        forms                 :
          "On Koding"         :
            callback          : (formData)=> @addDatabase formData
            buttons           :
              Create          :
                title         : "Create"
                style         : "modal-clean-gray"
                type          : "submit"
                loader        :
