minor changes in template edit