editing the friends functionality added