main page setup