adjusted pages controller