added a few changes to make the code work correctly with the drop down box and attempted to make it so that search only shows 1 of each item.