update buttons and inputs