now has the main page displayed correctly