updated the preview