Adding a method to change the data in the dropdown

Have added a new method that lets the coder set new data in the
dropdown.