IE modal dialog fix

Fixes issue with modal dialog in ie