various bugfixes and ui improvements for level editing