Add "remove element" UI and confirmation code.