Added YouTube video event handling