Added automatic tip recalculation while updating the total amount.