setup global template variables