merging cart management functionality