change cursor handling