pagination and filter working together