Added views (in views.py) and edited urls.py to include mainpage template