Implemented the delete feature in the dropdown box