Update selection only once at the end of the operation