calling setCursorMode from library item