Make the gear menu a popover and redesign menu
Search also in submenus

We check recursively in the sections that do not have an id
and that they contain submenus