adding video event handling