Added checking for existence of bongcast and changed view_cast template logic