getting rid of unnecesary tags in the dropdown