added view template file for averages