Why after I press management , I press whatever it will return to management again?
1. It's difficult to understand what you are describing and I don't see any way for it to be doing what I think you are describing.
2. I think you should g_menuPosition[id] with g_menuPosition[id] = 0