Refactored example of embedding Canvas via .ui