refactor editors and renderers as simple html files