fix pane save state current file and deprecate documentManager.goNextFile, move traversal code to mainViewManager