router to work with & and pagination class