improved template with smart content