Fix up the events on the modal popup
Support older ie