Updated views.py - fixed small bugs