Menu items and a new tab

Hello all,

My application has two widgets CMenu and CJuiTabs. What I like to do is when I click an item on the menu. it adds a new tab to the tabs with a content of a module. How do I do it? Any pointers or code snippet would be appreciated.

Thanks in advance.

you need to update the CJuiTabs based on Id of the Juitabs elements