adds option to set default window size for viewer