added enabled flag to textinput