Added rating to search/edit/details

Refactored the search