Add posiblity to genereate a submenu automatically