refactor editor view