refactoring and adding view_stream.html mockup