Move stream code into viewer file, make it load video stream only when being shown