input state visibility fix