Added templates controller.