Manages menus dynamically by reading an xml file