adding end of video handler