add update function to shop cart