implemented delete confirmation dialog