Added custom error handler and error page