implemented filtering by statuses