added an average value into the friend controller/view