fix events for IE8 and below