added some functionality to shopping cart