got the delete functionality working