added annoying js modal dialog box for confirmation