Turn off document on click during popup close