Moved logic to model and fixed the breadcrumb for product details