textinput functionality working