added support for (non)-dismissable modals (as a custom option of the modal)