updates event listener to not have to be configured by itself