update for input tag