change the behavior of the modal box