recursive build of the menu using configuration