Use boolean variables .. Put on a specific boolean variable for each menu you have .. and suppose the menu is opened and then some other menu is opened .. the variable associated with previous menu is never turned false while the variable declared for other menu is set to true .. now you know what actually happened.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !