Made viewer camera reset when selection changes.
Fixed viewer-related mem leaks when viewer isn't open.