switch button and textinput update