Code refactoring + mapeditor launching