use linkFn instead of Ctrl for cubeDirective