now emits a 'state' event with the name of the state as well as one that is the name of the state