Added an update method to reset the dropdown data