added functionality for search results to be displayed as list view