Fixes to index, init, and transfer of templates to templates.html.