Fix API response
Split views.py and clean views/