popup: reset target visibility flag on hide