update modal class