moved viewer variable

https://discoverygarden.atlassian.net/browse/INT-140