Merged youtubehandler functionality with queryhandler