editor styling, some less refactoring