Added methods to cart controller