Improve container edit

Add: new cached value - template;
Mod: better edit function with the use of the cached template value;