Pagination and cleaning

All front end portions combined.