refactor editor
refactor