Changed timing of stl generation

Instead of wasting time generating each time dimensions are changed, it
now waits until you click the preview/print button