added a listener for a reset event