completed functionality to make search results clickable links