connect the cursor to ui