It seems to me that a problem not in HUD as it is, but in program architecture.
If I understood correctly, you try to show a message from invisible module.
IMO, it's necessary to place "message show" subroutine in each visible page, and invisible module will call corresponding subroutine depends on currently visible page.