code for previewing dimensions moved into previewDimension.py