     @initializeListeners()
 
   initializeListeners: ->
-    status = KD.remote
-
-    @on "LocalContentSynced", (file)->
-      log "LocalContentSynced : #{file.path}"
-
-    @on "LocalContentCouldntSynced", (file)->
-      log "LocalContentSynced : #{file.path}"
-
-    status.on "reconnected", =>
+    KD.remote.on "reconnected", =>
       return  if @synStarted
       @synStarted = yes
       @syncLocalContentIfDiffExists (err)=>

    fileName = "[#{file.vmName}]#{plainPath}"
    return fileName

  saveEditorHistory: ->
    log "NOT IMPLEMENTED YET"

  removeFromOpenedFiles: (file)->
    fileName = @getFileFullPath file
    index    = @openedFiles.indexOf fileName
    return if index is -1
    @openedFiles.splice index, 1
    @storage.setValue "openedFiles", @openedFiles
    @removeFromSaveArray file
    @removeFileContentFromLocalStorage file

  getRecentOpenedFiles: ->
    @openedFiles
