updated product detail page code