refactoring; using viewer instad of cesiumWidget