added intent to main activity and coded view a stream activity