make sure save model before preview()