add mechanism for save preview