Added loading page and error page.