change mouse cursor style and add point snap when mouse moveing