update style and config