use template loader for error page