Updated searchfunctionality for coordinate