cursor for history