Add if else statement to search result and make it look like