change event listener to conform to new API