refactoring level_editor package