live preview for point and line