remove unused code from video dialog