Changing the position of cursor by mouse