Add stopOnEsc and stopOnOverlayClick options