modified ui refresh, event based, added randomizer