Added confirm dialog when removing elements.