integrate dynamic update on change of total quantity