Added ability to specify whether the user can close the modal manually