Updated the way data is displayed depending on the type of search.