adds logic to render  products dynamically