edit style & update sum