update in models + rename network to ai in views.py