       name         : "sshkey"
       cssClass     : "light"
 
-    @titleInput.setValue @data.title if @data.title
-    @keyTextarea.setValue @data.key if @data.key
+    {key, title} = @getData()
+
+    @titleInput.setValue  title if title
+    @keyTextarea.setValue key   if key
 
     @addSubView formline2 = new KDCustomHTMLView
       cssClass : "button-holder"

    @getDelegate().emit "RemoveItem", @

  saveItem:->
    @data =
      key   : @form.keyTextarea.getValue()
      title : @form.titleInput.getValue()
      
    if @data.key and @data.title
      @info.$('span.title').text @data.title
      @info.$('span.key').text "#{@data.key.substr(0,45)} . . . #{@data.key.substr(-25)}"
      @swappable.swapViews()
      @getDelegate().emit "UpdatedItems"
    else

    @swappable.swapViews()

  cancelItem:->
    @getData().key = @form.keyTextarea.getValue()
    if @getData().key
      @swappable.swapViews()
    else
      @deleteItem()
