fixing modal dialog positioning in firefox