Add subtotal row
refactor