modify cursor for main.lua