implemented friend-request functionality