adds friend adding functionality