updated  friendship controller