adding previewUrl configuration feature