implemented filtering by priority and status