moved viewer variable
Merge pull request #67 from ajstanley/7.x

moved viewer variable