Cross-browser modal improvements.