changed AdminMenu, so it is possible to generate menus before the defined ones