Major revamp: put all templates in index