added views.py - view functions