created a constructor for the product page initializer