Added a confirmation dialog for removing items from a list.