Set titles in templates.