cleaned up totals view