added more pages functionality