updated event listener