implemented deletion of selected items