updates to views.py and forms.py