update templates, migrate old templates to new base.html