popup hiding fix