text input runs functions now