removal of embed codes when navigatiing away from page without closing video panels