Added function to add and destroy friendships