simplify basket logic it's been managed outside setBasket function; added both category and page type for specification migration period.