added the functionality to empty a cart