implement view templates.