Update columnChooser

reduced the number of lines in the function