added fucntionality to shopping cart