added totals to views