get preview-save tool almost working (close button does not close)