Get the main page working