update doc view when switching editors