limit input, reset on new input