adding pause/play to viewer