clean up and flatten the search results style