added event listener for IE also