fixed a small error in search friend function, and replaced add friend function with add friend request function