updating template variable content