#642 Fixed template type name in title of template editor. Added the skipping of confirmation if the template was not changed. Added default text in template structure when the template is empty.