update function updateAddedAmount
adjust table alignment