better editor/viewer switching