complete add and accept friend logic