properly show query filter on front-end