Added some event handling to YouTube action