Hiding menu items when I switch between databases

Hello,My requirement is : If I open my own database I should show a set of menu items under Action menu, but if I open other user’s database then I need to hide the menu items which I told earlier.

It is happening properly at load time but if I open my database and other users database simultaneously and then if I shift between database, the menu items is not getting refreshed automatically. Could you please tell me how can I achieve this?

Thanks in advance,

Vinod.