snapping to pages working