major overhaul to store current SSS code in PortraitViewer (not static)