update inputs and modals