update the friends relationship