Modal view now closes when clicking outside of the modal.