resetting the starting template index to 0