fix IE8 confirm dialog bugs