fixed some errors in the cart view