Added unique id for each template