update modal list when necessary