Now dynamically build the selector dropdown menu.
When there is a lot of categories, dispatch them in submenus.