error handler & loading page.