Notify selection changed only when necessary