clear the selection when reversing changes