add preview code