add preview script