update preview