Added update and remove functionalities to the cart