removing the duplicates from the dropdown