- porting element from original three-viewer , cleaning up