reshape setTheme functionality
updating mechanism, various editor-related event listeners and bug fixes