make CellSelection work with tree mode