updating in style mode evry time for change