remember input fields instead of last index