toggle emits state changed