main page set up