ADD- attaching snap behaviour to the views.
TODO- extra credit