fix os detection and z-index of iframe