Fix the input view buttons state bug