Fixed event handlers for older IE