restores text input functionality