Added delete dialog behaviour to delete buttons.