fix display and function of pause button; close open videos on exit;