added total amount on the stats page based on the current filter