clean up unwanted pages and references