adding functionality to support displaying search results from multiple queries