added confirmation and dispose to each case