Displaying template tree with generating ID and name