Change key and name in template assign