make proper template filename in scaffold