added deleting functionality
added deleting functionality