optimized the pages