added a onPut method for changing list of friends data.