add event listener to engine