For this wiki article we will demonstrate adding Quests and Highscore to the dropdown menu, assuming all of their UIs have already been made.
## Creating The Drop-down
Within GameClient/src/view/screen/menu/MenuUI.java, first add the label(s) of the element(s) you wish to add to the drop-down as instance variable constants (QUEST_BUTTON_TEXT and HIGHSCORE_BUTTON_TEXT below. Then, add the following method to the class, where your new constants will be set along with the preexisting ones:
```java
/**
* Adds the dropown menu to the UI
* @param text - the the label of the dropdown menu
* @param listener - The listener listening to the dropdown menu
* @param clickListener - the click listener that will close the windows.
Make sure to import all of the necessary libraries. It should be noted that libgdx doesn't include a drop-down menu by default, however we were able to implement one using a selectbox along with a change listener, and a click listener.
The change listener is used to determine when a different element is selected within the selectbox. The click listener is used to detect when the dropdown icon is clicked within the menu.
The above method "listens" for the selected element to change within the drop-down, and toggles the visibility of the overlaying screen when appropriate.
## Making the Drop-down control the UI screens
The following code ensures all displayed UI's visibility is toggled correctly when elements in the dropdown are clicked
Within ScreenMap, add the following code to the addUIs method:
*note that in the addOverlayingScreenToggle() method above, a null string is passed in. This is necessary, as any non-null text will add a button to the table at the top of the screen*
## Visual Example of Drop-Down
The drop-down will be added to the table at the top of the screen