modal options refactoring