popup dismissed when not clicked