update cart type for url changes