changes in api_views.py and api_forms.py