add total row and total column