new buildmenu in order to use rewritten tgmenu.xqm