updating the modals