changes to view.py and stream.html