Tidy code.
Changed url pattern for paginated views.