Made the text field work