closures and snapping method

Added a method to snap views to the nearest row, updated the block
obejct to employ closures