adds anchor tag to text list and appropriate styling. want to trigger search by clicking anchor