search result list html and refactoring