How can I add new options to a dropdown dynamically?