update counters on click