update cursor position change