issue #5685: refactor ctor & create of ccui
Merge pull request #2044 from joshuastray/ccui_create

issue #5685: refactor ctor & create of ccui