added cart and delete for elements