fixing event triggers for IE