redrawing 3dplot based on checkbox with dimensions