Ensure that pop ups disappear on window tap