adding metricservice helpers for calculating summary data
updates to the controller and views for the summary data