add delete icon to item list elements. Remove delete button from dialogs. Deleting element closes dialog