added stats panel + modify panel update logic
manually merge