Refreshing template files