ref_app/views.py update