fix add friend functionality