Added Ajax and completed Friend relationships