               @note_load_finished(true, note.guid, null)
               console.log('loading note ' + note.guid + ' finished')
               # updating note list
-              @get_all_notes().then(
-                (notes) =>
-                  console.log('updating note lists')
-                  @_set_note_list(notes)
-                (error) =>
-                  notifier.error('get_all_notes() failed in load_note(): ' + error)
-              )
+              @reload_local_note_list()
             (error) =>
               notifier.error('load note ' + guid + ' failed: ' + JSON.stringify(error))
               @note_load_finished(false, guid, new Error('load note ' + guid + ' failed: ' + JSON.stringify(error)))

  # Document ready
  # ------------------------------------------------------------------------------------------------------------------
  $document.ready ->
    # load ace editor
    $window.ace.config.set('basePath', '/javascripts/ace')
    vm.ace_editor = $window.ace.edit("md_editor_div")
    vm.ace_editor.renderer.setShowGutter(false)

  # ------------------------------------------------------------
  init_current_note: () =>
    previous_note_guid = localStorageService.get(@SETTINGS_KEY.CURRENT_NOTE_GUID)
    if not previous_note_guid?
      previous_note_guid = "INVALID_GUID"
    p = @find_note_by_guid(previous_note_guid).then (note) =>
      if note?
