Updated cart controller