small cleanup in viewCube code