Revert "Revert "calculated average ratings and showed it on idea page""

This reverts commit da7081ee289bfdfbb9a358a033cff1e59c8c5d60.
have commented out wrong code