Adds cart functionality