creating dynamic menus