implement friend search functionality