Code cleanup for video popup.