Implemented close modal when user clicks on the semi-transparent black background.