Added logic for no search result page