reset input size in on input handler