Chuncked emits to not delay the toggleClass of the buttons