add to ui add to state on snapping function check state value of snapping to determine if to snap
add to ui
add to state
on snapping function check state value of snapping to determine if to snap