Adding a new event handler so we can work around IE bugs

IE needs things to happen in a specific order regarding styles when we
absolutely position modals (specifically, display:block, top:#,
opacity:1 must happen in exactly that order). This event handler allows
us to do that by positioning things between the other style changes.