implemented template list controller and template model.