Adding cart controller and availability checking