make MessageUI framework optional