Handles templates for dialog content