debug of closing modal, without clicking on agree