optimize cart flow, add functionality to reset cart