updating event listeners in examples