adding the update functionnality to the cart