- slight restructuring, added ui-example-plugin for editor