adding some workarounds for Chrome's popup sizing bugginess