writing to the text field