create cursor and cursor movement