optimize pages in main folder