new feature: filter for query - front end