cube widget implementation