problem with pagination and accordion solved