Adding header and error templates