added errorPage class for error page templates.