make events work in IE8