modified urls.py and views.py to match the api