make search result styling reusable