styled the editor + fixed the rendering of the editor + refactoring