added updateMaxLength and updated updateDisabled