viewer set in main