adds ability to translate error page