add show function to search result