restore create preview script