change edited item to the new container
clear selection when editedItem is changed