Add switch_preview
Add record.py