Added a dialog box to confirm class deletion