update html and add button for grand total of each purchase