add total_income method to transaction.rb and show total income and spending in transactions view