when a friend is added, the list of friends is updated without page refresh