Update for text input