Close pop-up when clicking on dark background