adding pagination to list details