edit totalvalue and totalitems