updating input class