updating config for preview