Refactored search results rendering