change input state