update realtime, added show/hide counter for legend