cat pagination moved to controller