added query filtering to products controller