added preview script