modified view_function that calculates the two scores correctly in score controller
call to the modified view_avg funtion of score controller and correct parsing of the result