templates uses render() to include headers and footers