began adding some code for delete button functionality, not complete