took templates out of main.html