finish filter functionality for the search result page