dynamically update the menu