Change handling of selected items.