Fixes urls and view so that pages display without errors