Updated pageChange to be consistent with pagination