update text input and text area