working to add total on add and subtract total on subtract