registerTemplate and associated controller added