added method resetToDefaultValue()
issue with tagName corrected