add snap to grid
add snap to grid