added preview functionality for products view