Refactored code to contain less views (Each page should now be a header.html and content e.g. main, manager.html, surveyor.html etc.).