ticket:2 Fixed bug in views.py
ticket:2 minor bug fixing