fixed search function to show names instead of location