make panorama viewer independent of theme