Introduced click event on modal background to close out modal window.