Yes I can see it, a model without a parent (the book itself?) will ask you twice if you are sure. The confirm() on the last line should go away.