cart items table is animated, code cleanup