refactor setControlsVisibility to toggleVideoControls