added video viewing functionality