tweak popup visibility