added some code to link between competitor data and search results
made some more changes