add rating label
did some refactoring; show rating in the search detail page