set up main page