Made updating update the preview