Code cleaning in product details page