update dart mode