added toggle functions to video in compact view