added errors page template feature