Loading index from template