fix delete friend functionality