changes to functional_tests.py, home.html, tests.py and views.py