updated polyfill for overlay-active