fix: refresh editor content on view change