Delete fix

Quick (untested) attempt: store id on delete button, get it from there when button is clicked