Missing piece of logic that was making quite unintuitive to add new menus

Signed-off-by: emanuele <emanuele45@gmail.com>