update modal box operation