Changed the method to return ModalAlert() which does not require a root element