               callback   : =>
                 @mountToggle.disable()
                 @deleteRemote.showLoader()
-                @getDelegate().emit "DeleteRemote", data
+                @getDelegate().emit "DeleteRemote",
+                  mountpoint : @mountpoint
+                  remotehost : data.remotehost
+                  remoteuser : data.remoteuser
                 modal.destroy()
 
   viewAppended:->

          unless data.haspass
            @mountToggle.hideLoader()
            new AskForPassword "Password required to mount #{data.remotehost}", (password)=>
              log password
              data.remotepass = password
              @mountToggle.showLoader()
              @changeMountState {state : 'mount', data}, callback
          else
            @changeMountState {state : 'mount', data}, callback
        "Umount", (callback)=>
          @changeMountState {state : 'umount', data}, callback
      ]
      defaultState : if data.mounted then "Umount" else "Mount"
    , data

    @deleteRemote = new KDButtonView

        @refreshRemoteDrives remotehost
      callback? err

  umountRemote:({remotehost, remoteuser, mountpoint}, callback)=>
    @hideMessages()
    @kc.run
      method   : 'umountDrive'
      withArgs : {remotehost, remoteuser, mountpoint}
    , (err, res)=>
      log err, res
      if err
