update style handling