updating the modal