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

  viewAppended:->
    super
    @form = form = new AccountSshKeyForm
      delegate : @
      cssClass : "posrelative"
    ,@data

    @info = info = new KDCustomHTMLView
      tagName  : "span"

    @getDelegate().emit "RemoveItem", @

  saveItem:->
    @setData
      key   : @form.keyTextarea.getValue()
      title : @form.titleInput.getValue()

    {key, title} = @getData()
      
    if key and title
      @info.$('span.title').text title
      @info.$('span.key').text "#{key.substr(0,45)} . . . #{key.substr(-25)}"
      @swappable.swapViews()
      @getDelegate().emit "UpdatedItems"
    else
