fixed viewCart() to fit with previous changes