update the preview since the styling changed