Close window when done viewing.