add total calc and view