fixed the routing for adding and emptying the cart