update for button & input