I think $submenu is what you're describing. The ability to make your popups, themselves, dynamically change. blue-elf's $submenu tutorial can be found at


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C