Implement new definition of the ModalManager