Updated scripts for preview option