Added Total calculations to Expenses and Payments tables
Moved Totals function to controllers