fixed popup blocking issues