How can I add a dropdown menu that shows a list depending on the selected option?