Added user option to determine if an overlay click closes the modal