Add front-end logic for render the streaming