added basic GUI, fixed loading issue when emulator is running