fix native file dialog choosing for folders, and add titrationProfile experimental work