cleaning up broken links and view pages