seperate templates out from index.html