switching to NodePos for text positioning, fixed cursor movement