stream page - bug fixes and code reorganization. Pin option for preview added.