Generate the menu automatically