prevent modal window modifing site object before OK button is clicked.