initial work on bringing back cmsui functionality that we had before patternslib rewrite