move templates into index.html