       """
 
     super
+
+    KD.utils.wait => @setClass 'ready'

    @cancelButton = new KDButtonView
      title    : "Cancel"
      cssClass : "modal-clean-gray"
      callback : => item.getDelegate().emit "hideAllWidgets"

    KD.utils.wait => @setClass 'ready'


    @loadItems()

    list.on "DeleteDatabaseSubmitted", (listItem)=> @deleteDatabase listItem
    list.on "UpdateDatabaseSubmitted", (listItem, password)=>
      @updateDatabase listItem, password

    list.on "HideAllWidgets", =>
      for item in @itemsOrdered
        item.deleteWidget?.destroy?()
        item.editWidget?.destroy?()
        delete item.deleteWidget
        delete item.editWidget

    @on "DatabaseUpdated", (listItem)=>
      listItem.changePassword.hideLoader()
      @emit "ListUpdated"
      list.emit "HideAllWidgets"

    @on "DatabaseDeleted", (listItem)=>
      list.removeItem listItem
      @emit "ListUpdated"

  loadItems:(callback)->
    @removeAllItems()
