builds listing mechanism in products controller