Close modal when the outside shade is clicked