Restructured dynamic live stream button code