added a button for delete but doesn't work right