implemented dynamic menus