made products page display according to document type