youtube video display logic