working on selected value for the dropdown controller