Ensure overlay closes on click