updated stream template
updated stream to support enter key