Selection and line highlight update