Here is the whole code.
I really need to make it so that when I click on an embedded menu item, the main one becomes active. For example, when you click on a sub-item nouns, the dictionary becomes active.
I can not understand how this is done. Tell me who knows.