add pagination to second view