updated addToCart, refactored variable in session scope