added logic for adding product detail