using query params to filter data