optimize main page