update input and button unit.