trying to implement search functionality in profile