add the confirm delete window and fix the bug in the case.php which causes by department column