add total to edit form