close modal once the "remove" button is clicked