global modalOpts