housekeeping in BattlePanel