change text to title in template