pulled out templates from index