Add index page and error page.