use templates to display contents.