Added delete functionality to the list widget