Add viewport (and better title) to template.