Initial implementation of ui element for collapse. Needs improvement.
ui improvement. initialization not working. Incorrect alignment of collapsed cell indicator triangle.
some old code that possibly fixes some initialization stuff