refactors editor
Merge pull request #33 from folieadrien/tiny-refactor

refactors editor