Create always-one-menu-displayed

Hello sydcanem :)
Thank your for your code. It has been helpful to me.
I needed to modify it in order to display only one contextual menu at the same time.
So here is my code, if you want to use it.
I hope you'll like it.

PS: To see my modifications, do Ctrl + F "ADD".